let Mock = require('mockjs');

let Random = Mock.Random;

module.exports = function () {
    let data = {
        news: []
    };

    for (let i = 0; i<100;i++){
        let content = Random.cparagraph(0,10);
        data.news.push({
            id:i,
            title:Random.cword(8,20),
            desc:content.substr(0, 40),
            date:Random.datetime(),
            user:Random.name(),

        })
    }

    return data;
};
